<?php
$config = array();

$config['index'] = array(
    'innerHTML' => '管理首页',
    'href' => '/',
	'icon' => 'icon/menu_6.png',
    'setting' => array(
        'innerHTML' => '站点设置',
        'base' => array(
            'innerHTML' => '基本设置',
            'href' => 'setting/',
        ),
        'tohtml' => array(
            'innerHTML' => 'HTML生成设置',
            'href' => 'setting/tohtml',
        ),
        'upload' => array(
            'innerHTML' => '上传设置',
            'href' => 'setting/upload',
        ),
        'thumb' => array(
            'innerHTML' => '缩略图设置',
            'href' => 'setting/thumb',
        ),
    ),
    'html' => array(
        'innerHTML' => '生成静态页',
        'href' => 'tohtml/',
    ),
    'upload' => array(
        'innerHTML' => '系统更新',
        'href' => 'update/',
        'perm' => 'default.update',
    ),
    'site' => array(
        'innerHTML' => '站点管理',
        'list' => array(
            'innerHTML' => '分站列表',
            'href' => 'site/',
        ),
        'add' => array(
            'innerHTML' => '添加新站点',
            'href' => 'site/add',
        ),
    ),
);

$config['category'] = array(
    'innerHTML' => '栏目相关',
    'icon' => 'icon/menu_5.png',
    'href' => '#',
    'category' => array(
        'innerHTML' => '网站栏目',
        'list' => array(
            'innerHTML' => '所有栏目',
            'href' => 'category/',
        ),
        'add' => array(
            'innerHTML' => '新建栏目',
            'href' => 'category/add/',
        ),
    ),
    'special' => array(
        'innerHTML' => '专题管理',
        'page' => array(
            'innerHTML' => '专题列表',
            'href' => 'special/',
        ),
        'list' => array(
            'innerHTML' => '新建专题',
            'href' => 'special/add',
        ),
    ),
    'custompage' => array(
        'innerHTML' => '自定义页面',
        'page' => array(
            'innerHTML' => '自定义单页',
            'href' => 'category/page',
        ),
        'list' => array(
            'innerHTML' => '自定义列表页面',
            'href' => 'category/list',
        ),
    ),
    'suipian' => array(
        'innerHTML' => '碎片管理',
        'page' => array(
            'innerHTML' => '所有碎片',
            'href' => 'suipian',
        ),
        'list' => array(
            'innerHTML' => '碎片分类',
            'href' => 'suipian/fenlei',
        ),
    ),
    'tag' => array(
        'innerHTML' => 'Tag管理',
        'href' => 'tag/',
    ),
    'upload' => array(
        'innerHTML' => '上传管理',
        'page' => array(
            'innerHTML' => '已上传文件',
            'href' => 'upload',
        ),
        'list' => array(
            'innerHTML' => '上传新文件',
            'href' => 'upload/new',
        ),
        'setting' => array(
            'innerHTML' => '上传设置',
            'href' => 'upload/setting',
        ),
    ),
);

$config['info'] = array(
    'innerHTML' => '内容管理',
    'icon' => 'icon/menu_4.png',
    'href' => '#',
    'category' => array(
        'innerHTML' => '全部栏目',
        'base' => array(
            'innerHTML' => '所有栏目',
            'href' => 'category/',
        ),
    ),
    'backup' => array(
        'innerHTML' => '回收站',
        'href' => 'backup/',
    ),
);

$config['model'] = array(
    'innerHTML' => '模型管理',
    'icon' => 'icon/menu_3.png',
    'list' => array(
        'innerHTML' => '模型列表',
        'list' => array(
            'innerHTML' => '模型列表',
            'href' => 'modules/',
        ),
        'import' => array(
            'innerHTML' => '导入模型',
            'href' => 'modules/import',
        ),
    ),
    'dbtable' => array(
        'innerHTML' => '数据表管理',
        'list' => array(
            'innerHTML' => '数据表列表',
            'href' => 'modules/dbtable',
        ),
        'import' => array(
            'innerHTML' => '导入数据表',
            'href' => 'modules/dbtable/import',
        ),
    ),
);


$config['template'] = array(
    'innerHTML' => '模板管理',
    'icon' => 'icon/menu_2.png',
    'list' => array(
        'innerHTML' => '全部模板',
        'href' => '#1',
    ),
);


$config['apps'] = array(
    'innerHTML' => '应用管理',
    'icon' => 'icon/menu_5.png',
     'list' => array(
        'innerHTML' => '应用商店',
        'list' => array(
            'innerHTML' => '精选应用',
            'href' => 'apps/',
        ),
        'paihang' => array(
            'innerHTML' => '排行榜',
            'href' => 'apps/paihang',
        ),
        'cat' => array(
            'innerHTML' => '应用分类',
            'href' => 'apps/cat',
        ),
        'buyed' => array(
            'innerHTML' => '已购买的应用',
            'href' => 'apps/buyed',
        ),
        'update' => array(
            'innerHTML' => '更新',
            'href' => 'apps/update',
        ),
    ),
);


$config['member'] = array(
    'innerHTML' => '管理员管理',
    'icon' => 'icon/menu_1.png',
    'admin' => array(
        'innerHTML' => '管理员管理',
    	'list' => array(
            'innerHTML' => '管理员列表',
            'href' => 'administrator/',
        	'perm' => 'administrator.view_user_info||administrator.is_group_manager',
        ),
    	'add' => array(
            'innerHTML' => '添加管理员',
            'href' => 'administrator/add',
        	'perm' => 'administrator.add_new_user||administrator.is_group_manager',
        ),
    ),
    'admin_group' => array(
        'innerHTML' => '权限组列表',
    	'list' => array(
            'innerHTML' => '权限组列表',
            'href' => 'administrator/group/',
            'perm' => 'administrator.view_group_info||administrator.can_edit_group',
        ),
    	'add' => array(
            'innerHTML' => '添加权限组',
            'href' => 'administrator/group/add',
        	'perm' => 'administrator.add_group',
        ),
    ),
);